import {createStackNavigator} from 'react-navigation-stack'
import home from '../pages/home';
import homeDetail from '../pages/homeDetail';

const HomeRootStack = createStackNavigator({
  Home: home,
  HomeDetail: homeDetail
}, {
  initialRouteName: "Home",
  navigationOptions: ({navigation})=>({
    tabBarVisible: navigation.state.index === 0,
  })
});

export default HomeRootStack;
